<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateWorshipBibleVolumesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('worship_bible_volumes', function (Blueprint $table) {
            $table->increments('id')->comment('ID');
            $table->integer('kind_sn')->nullable()->comment('类序号');
            $table->integer('chapter_number')->nullable()->comment('总章数');
            $table->tinyInteger('new_or_old')->comment('新旧约');
            $table->char('pinyin', 10)->nullable()->comment('拼音');
            $table->char('short_name', 10)->nullable()->comment('简称');
            $table->char('full_name', 20)->nullable()->comment('全称');
            $table->timestamp('created_at')->nullable()->comment('创建时间');
            $table->timestamp('updated_at')->nullable()->comment('更新时间');
            $table->softDeletes()->comment('删除时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('worship_bible_volumes');
    }
}
